package com.yixin.token.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Resp {
    private Integer code;
    private String message;
    private Object obj;

    public static Resp ok(Object obj) {
        return new Resp(200, "成功", obj);
    }

    public static Resp error(Object obj) {
        return new Resp(500, "失败", obj);
    }
}
